public class test1 {
     public static void main(String[] args){
        Demo s=new Demo(3,4);
        System.out.println(s.ave());
    }
}
class Demo{
    double x,y;
    Demo(double x,double y){
        this.x = x;
        this.y = y;
        ave();
    }
    double ave(){
        return (x+y)/2;
    }
}
